package org.example.java_200_question.p01;

/**
 * @author lou ke
 * @since 2024/2/8 20:15
 * 继承 Thread 类
 */
public class MyThread extends Thread {

    public static void main(String[] args) {
        MyThread myThread = new MyThread();
        myThread.start();
        State state = myThread.getState();
        System.out.println("线程状态："+state);
        ;
    }

    @Override
    public void run() {
        System.out.println("hello world!");
    }


}
